package StringTest;

import java.util.Random;
import java.util.Scanner;

public class test3 {
    public static void main(String[] args) {
        //1.输入一个字符串
        Scanner sc=new Scanner(System.in);
        String s = sc.next();
        //2.将一个字符串变为字符数组
        char[] arr=s.toCharArray();
        //3.将数组里的字符打乱
        Random r=new Random();
        for (int i = 0; i < arr.length; i++) {
            int randomIndex = r.nextInt(arr.length);
            char temp=arr[i];
            arr[i]=arr[randomIndex];
            arr[randomIndex]=temp;
        }
        //4.将字符数组转成字符串
        String res=new String(arr);
        //5.输出
        System.out.println(res);
    }
}
